package com.eseo.munchkinarbiter;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class GameConfig {
	public static int maxLevel = 10;
	public static boolean preventSleep = true;
	
	public static void load(SharedPreferences pref) {
		maxLevel = pref.getInt("maxLevel", maxLevel);
		preventSleep = pref.getBoolean("preventSleep", preventSleep);
	}
	
	public static void save(SharedPreferences pref) {
		Editor edit = pref.edit();
		edit.putInt("maxLevel", maxLevel);
		edit.putBoolean("preventSleep", preventSleep);
		
		edit.commit();
	}
}
